<!--
 * @Author: zll
 * @Date: 2024-08-08 18:13:32
 * @LastEditors: zll
 * @LastEditTime: 2024-09-11 09:01:12
 * @Description: file content
 * @FilePath: \erp-app\src\pages\pm\gongying\component\sample-analysize.vue
-->
<template>
  <view>
    <template v-if="checkFlag == 1 && form.id">
      <assayReport :pid="taskId" :version="0"></assayReport>
    </template>
  </view>
</template>

<script lang="ts" setup>
import assayReport from './assayReport.vue';

const rdSampleAnalysisEntity = ref([]);
const dataList = ref([]);
const taskId = ref('');
const checkFlag = ref(0);
const form = reactive({
  id: '',
});
const init = (row) => {
  form.id = row.id;
  rdSampleAnalysisEntity.value = row.rdSampleAnalysisEntity;
  dataList.value = row.rdSampleAnalysisEntity;
  taskId.value = row.id;
  checkFlag.value = row.checkFlag;
};

defineExpose({
  init,
});
</script>
<style lang="scss" scoped>
@import '../../experiment/components/table';

.result-tag {
  padding: 6rpx 14rpx;
  margin: 2rpx 0;
  font-size: 24rpx;
  color: white;
  background-color: #87d068;
  border-radius: 4rpx;
}
</style>
